<div class="funciones view">
<h2><?php  __('Funcion');?></h2>
	<table<?php $i = 0; $class = ' class="altrow"';?>
>
		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Descripcion'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $funcion['Funcion']['descripcion']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Cod Funcion'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $funcion['Funcion']['cod_funcion']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $funcion['Funcion']['id']; ?>
			&nbsp;
		</td>
		</tr>	</table>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Funcion', true), array('action' => 'edit', $funcion['Funcion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Funcion', true), array('action' => 'delete', $funcion['Funcion']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $funcion['Funcion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Funciones', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Funcion', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Roles', true), array('controller' => 'roles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rol', true), array('controller' => 'roles', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Roles');?></h3>
	<?php if (!empty($funcion['Rol'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($funcion['Rol'] as $rol):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $rol['id'];?></td>
			<td><?php echo $rol['nombre'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'roles', 'action' => 'view', $rol['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'roles', 'action' => 'edit', $rol['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'roles', 'action' => 'delete', $rol['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $rol['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Rol', true), array('controller' => 'roles', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
